package com.hqyj.order.mapper;

import com.hqyj.order.model.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    OrderInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);

    List<OrderInfo> queryAllOrderInfo();

    int updateOrderInfoStateBySaleId(int id);

    List<OrderInfo> queryAllOrderInfoBySended();

    int updateOrderInfoByOrderState(int id);
}